﻿using UnityEngine;
using System.Collections;

public class MusicCon : MonoBehaviour {
    private GameManager manager;
    public AudioClip music_clip;
    public static MusicCon instance;
    void Start () {
        manager = GameManager.getInstance();
	}
    void Awake() {
        instance = this;
        
    }
	// Update is called once per frame
	void Update () {
        
	}
    public void PlayMusic()
    {
        audio.clip = music_clip;
        audio.Play();
        audio.mute = false;
    }
    public void StopMusic()
    {
        audio.Stop();
    }
    
}
